package com.xnyzc.lhy.mis.entity.engine;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
*
* 风控规则
*
* @author cuixiaojian
* @since 2019-12-16
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaRiskControlRules对象", description="风控规则")
public class OaRiskControlRules implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value="rules_id", type = IdType.INPUT)
    private Long rulesId;

    @ApiModelProperty(value = "业务结点")
    private Integer businessNode;

    @ApiModelProperty(value = "风控规则类型(字典表engine_rule)")
    private String ruleType;

    @ApiModelProperty(value = "命中次数")
    private Integer hitCounts;

    @ApiModelProperty(value = "特征一配置")
    private BigDecimal characteristicFirst;

    @ApiModelProperty(value = "特征二配置")
    private BigDecimal characteristicSecond;

    @ApiModelProperty(value = "特征条件(0-或 1-与)")
    private Integer conditions;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "扩展字段1")
    private String expand1;

    @ApiModelProperty(value = "扩展字段2")
    private String expand2;

    @ApiModelProperty(value = "扩展字段3")
    private String expand3;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    public static final String RULES_ID = "rules_id";

    public static final String BUSINESS_NODE = "business_node";

    public static final String RULE_TYPE = "rule_type";

    public static final String HIT_COUNTS = "hit_counts";

    public static final String CHARACTERISTIC_FIRST = "characteristic_first";

    public static final String CHARACTERISTIC_SECOND = "characteristic_second";

    public static final String CONDITIONS = "conditions";

    public static final String TAG = "tag";

    public static final String EXPAND1 = "expand1";

    public static final String EXPAND2 = "expand2";

    public static final String EXPAND3 = "expand3";

    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

}
